@extends('users.app')
@section('title', '域名添加')
@section('content')
<div class="col-md-10 offset-md-1">
    <div class="card ">

      <div class="card-header">
        <h1>
          添加域名
        </h1>
      </div>
      <div class="card-body">
          <form action="{{ route('domains.store') }}" method="POST" accept-charset="UTF-8">

          @include('common.error')

          <input type="hidden" name="_token" value="{{ csrf_token() }}">


                <div class="form-group">
                	<label for="domain-field">Domain</label>
                	<textarea class="form-control" style="min-height:15rem;" name="domain" id="domain-field" placeholder="填写域名，每行一个">{{ old('domain', $domain->domain ) }}</textarea>
                </div>

          <div class="well well-sm">
            <button type="submit" class="btn btn-primary">Save</button>
            <a class="btn btn-link float-xs-right" href="{{ route('domains.index') }}"> <- Back</a>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

@endsection
